<template>
  <div class="horizontal-layout">
    <!-- 左侧菜单区域 -->
    <div class="menu-section">
      <slot name="menu"></slot>
      <!-- 插槽用于外部传递菜单内容 -->
    </div>

    <!-- 右侧内容区域 -->
    <div class="content-section">
      <slot name="content"></slot>
      <!-- 插槽用于外部传递内容 -->
    </div>
  </div>
</template>

<script>
export default {
  name: "HorizontalLayout",
};
</script>

<style scoped>
.horizontal-layout {
  display: flex;
  gap: 20px;
}

.menu-section {
  width: 200px;
  background-color: #f4f4f4;
  padding: 10px;
}

.content-section {
  flex: 1;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #ddd;
}
</style>
